From: Gabriel Wicke Date: Wed, 12 May 2004 12:48:36 +0000 (+0000) Subject: preserve newline before braced variables X-Git-Tag: 1.3.0beta1~88 X-Git-Url: https://git.cyclocoop.org/admin/%7B%24plugin.url%7Cescape%7D?a=commitdiff_plain;h=fd7106bf4cb6621672389f101f54f1f2eb1b0cb2;p=lhc%2Fweb%2Fwiklou.git preserve newline before braced variables --- diff --git a/includes/Parser.php b/includes/Parser.php index 79aa4e7244..b49b49f28e 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1508,6 +1508,7 @@ class Parser # Run full parser on the included text $text = $this->strip( $text, $this->mStripState ); $text = $this->internalParse( $text, (bool)$newline, $assocArgs ); + if(!empty($newline)) $text = "\n".$text; # Add the result to the strip state for re-inclusion after # the rest of the processing